﻿using System.Collections.Generic;
using DataScripter.Excel.Formatters;

namespace DataScripter.Excel.FormattedValues
{
	class GenericFormattedValue<TType> : BaseFormattedValue
	{
		public TType T { get; set; }

		public GenericFormattedValue(TType t, IEnumerable<ICellFormatter> formatters)
			: base(new MultiFormatter(formatters))
		{
			T = t;
		}

		public GenericFormattedValue(TType t, ICellFormatter formatter)
			: base(formatter)
		{
			T = t;
		}

		public override object Value
		{
			get { return T; }
		}

	}
}
